package com.wawayaya.db.entitydao;


import java.util.List;

import com.wawayaya.bean.Support;
import com.wawayaya.db.DBManager;
import com.wawayaya.db.basedao.SupportDao;

public class SupportEntityDao extends BaseEntityDao<SupportDao, Support,String> {

	@Override
	protected SupportDao initEntityDao() {
		return DBManager.newSession().getSupportDao();
	}

	public void deleteEntityByKey(String key) {
		getEntityDao().deleteByKey(key);
	}

	@Override
	public void replaceEntity(Support entity) {
		getEntityDao().insertOrReplace(entity);
	}

	@Override
	public List<Support> queryEntities(String where, String... selectionArg) {
		return super.queryEntities(where, selectionArg);
	}
}
